<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>系统管理</title>

    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
    <link rel="stylesheet" type="text/css" media="all" th:href="@{/css/tyle.css}">
    <script th:src="@{/js/jquery-1.9.1.min.js}"></script>
    <style type="text/css">
        .layui-tab-title .layui-this {
            color: #009688;
        }
        body {
            background-color: #ffffff;
        }
        .layui-nav {
            padding-left: 10%;
            padding-right: 10%;
        }
    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">招聘工 后台布局</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="/">网站首页</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    管理员
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="/admin/admin/pass" target="_blank">修改密码</a></dd>
                    <dd><a href="/admin/logout">退出</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item"><a href="javascript:void(0);" onclick="js_user()">用户管理</a></li>
                <li class="layui-nav-item"><a href="javascript:void(0);" onclick="js_job()">发布管理</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body" style="overflow-x:hidden;overflow-y: hidden;">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            <iframe class="frame" src="/admin/admin/user" style="width: 100%;height: -webkit-fill-available;border-color: #ffffff;border-width: 0px"></iframe>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © 系统作者：yster@foxmail.com
    </div>
</div>

<script th:src="@{/layui/layui.all.js}"></script>
<script>
    function js_user() {
        $('.frame').attr("src","/admin/admin/user");
    }
    function js_job() {
        $('.frame').attr("src","/admin/admin/job");
    }
</script>
</body>
</html>
